import numpy as np
import cv2
from scipy import ndimage

kernel=np.array([[-1,-1,-1],[-1,8,-1],[-1,-1,-1]])
kernel1=np.array([[1,1,1],[1,-8,1],[1,1,1]])
img=cv2.imread('./static/2.JPG',0)

# ling=ndimage.convolve(img,kernel1)
#使用高斯模糊提取特征
ling=cv2.GaussianBlur(img,(11,11),0)
gaussimg=img-ling
cv2.imshow('img',gaussimg)
# cv2.imshow('cool',ling)
cv2.waitKey()